import request from '@/utils/request'

export const getAllApi = (customerId, invoiceCode, status, pageNum, pageSize) => {
  return request.get(`/outbound?customerId=${customerId}&invoiceCode=${invoiceCode}&status=${status}&pageNum=${pageNum}&pageSize=${pageSize}`)
}

export const getAllByStatusApi = (customerId, invoiceCode, status, pageNum, pageSize) => {
  return request.get(`/outbound/byStatus?customerId=${customerId}&invoiceCode=${invoiceCode}&status=${status}&pageNum=${pageNum}&pageSize=${pageSize}`)
}

export const updateConfirmApi = (id) => {
  return request.put(`/outbound/updateById/confirm/${id}`)
}
export const updatePickApi = (id) => {
  return request.put(`/outbound/updateById/pick/${id}`)
}
export const updatePickedApi = (id) => {
  return request.put(`/outbound/updateById/picked/${id}`)
}
export const updatePackagingApi = (id) => {
  return request.put(`/outbound/updateById/packaging/${id}`)
}
export const updateWeightingApi = (id) => {
  return request.put(`/outbound/updateById/weighting/${id}`)
}
export const updateOutboundApi = (id) => {
  return request.put(`/outbound/updateById/outbound/${id}`)
}
export const updateOutboundedApi = (id) => {
  return request.put(`/outbound/updateById/outbounded/${id}`)
}
export const updateSignedApi = (id) => {
  return request.put(`/outbound/updateById/signed/${id}`)
}
